package com.mspbots.cw.amqp.model;

import com.fasterxml.jackson.databind.JsonNode;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * com.mspbots.sync.scheduled.tsheets.model.SheetsTime
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/7/25
 */

@Data
@Table("tsheet_times")
public class SheetsTime {

    @Id
    private Long id;
    private Integer tenantId;
    private Long sheetId;
    private Long sheetUserId;
    private Long createdByUserId;

    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private LocalDate oneDay;
    private Long duration;
    private LocalDateTime lastModified;
    private String notes;
    private LocalDateTime syncTime;
    private JsonNode extend;

    @Transient
    private transient Boolean onTheClock;


}
